package com.kerbores.blog.service.impl;

import java.util.List;

import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

import com.kerbores.blog.bean.Album;
import com.kerbores.blog.dao.IAlbumDao;
import com.kerbores.blog.service.IAlbumService;

@IocBean(name = "albumService")
public class AlbumServiceImpl implements IAlbumService {

	@Inject
	private IAlbumDao albumDao;

	@Override
	public List<Album> list() {
		return albumDao.findAll();
	}
}
